function RGBcolor = farbeRand(farbBild)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Liefert die Durschnittsfarbe des Randbereichs eines Bildes
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    hoehe=size(farbBild,1);
    breite=size(farbBild,2);
    
    oben(:,:)=farbBild(1,:,:);
    unten(:,:)=farbBild(hoehe,:,:);
    links(:,:)=farbBild(:,1,:);
    rechts(:,:)=farbBild(:,breite,:);
    
    randbereich=vertcat(oben,unten,links,rechts);
    
    RGBcolor=mean(randbereich,1);


end